copy (count of (generic boxes whose selected is true)) to numSelected
if numSelected = 0 then
beep
display dialog "Check a box is selected and" & return & "that it is on the current page." buttons "OK" default button 1 with icon 1
do updates
else if numSelected is not 1 then
beep
display dialog "" & numSelected & " items have been selected." & return & "(Only one box can be used at a time)." buttons "OK" default button 1 with icon 2
do updates
else if (box type of generic boxes whose selected is true) = line box then
beep
display dialog "Cannot use lines." buttons "OK" default button 1 with icon 2